include<tools/util.scad>
include<tools/threads.scad>

$fn=100;

box_length=125;
box_width=115;

rod_diam=19;
difference(){
    union(){
        d_round_cube([box_length,box_width,3],center=true,zero=true);
        translate([0,0,3])difference(){
            cylinder(h=box_width/2,d=rod_diam+4.5);
            translate([0,0,14])cylinder(h=box_width/2,d=rod_diam+0.5);
            translate([0,0,9])cylinder(h=6,d=16);
        }
    }
    cylinder(h=15,d=6);
}
for(angle=[0:120:360])
    rotate([0,0,angle])translate([rod_diam/2+2,0,3])d__tri_stiff(x=box_width/4,y=box_width/4,z=4);

//螺钉
translate([0,box_length/2+10,0])difference(){
    union(){
        cylinder(h=5,d=16);
        translate([0,0,4])ScrewThread(5.7, 18);
    }
    cube([2.5,16,5],center=true);
}
